package com.demo.services;

import java.sql.SQLException;
import java.util.List;

import org.hibernate.HibernateException;

import com.demo.entity.Userinfo;
import com.demo.otherbeans.PagesBean;

public interface UserServices {
	public void saveUser(Userinfo userinfo);
	public List<Userinfo> findUser(String hql);
	public PagesBean findUserPageByHql(String hql,int currentPage ,int pageSize);
	public PagesBean findUserPageBySql(String hql,int currentPage ,int pageSize);
	public String getDatabaseType() throws HibernateException, SQLException;
}
